﻿#set($vmodel = $biz.GetArticle("en_video", "is_red=1")) 
#set($w = 202) 
#set($h= 137) 
#set($ext=$biz.GetFileExtension($vmodel.file_path))
#if ($ext == "flv"||$ext == "mp4")
<div id="a1"></div>
<script type="text/javascript" src="/plug/ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
    var flashvars = {
        f: '$vmodel.file_path',
        c: 0,
        loaded: 'loadedHandler'
    };
    var video = ['${vmodel.file_path}->video/$ext'];
    CKobject.embed('/plug/ckplayer/ckplayer.swf', 'a1', 'ckplayer_a1', '$w', '$h', false, flashvars, video);
</script>
#else
<embed src="${vmodel.file_path}" quality="high" width="$w" height="$h" align="middle"
    allowscriptaccess="always" allowfullscreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
#end 